package dao;

import pojo.PageInfo;
import pojo.Student;
import pojo.Teacher;

import java.sql.SQLException;
import java.util.List;

public interface TeaDao {
    /**
     * 根据教师id查找管理的学生
     * @param id
     * @return
     * @throws SQLException
     */
    List<Student> findStusById(String id)throws SQLException;

    /**
     * 根据id查找教师
     * @param id
     * @return
     * @throws SQLException
     */
    Teacher findTeaById(String id)throws  SQLException;

    /**
     * 根据id查找教师管理的学生，包含分页
     * @param id
     * @param pageInfo
     * @return
     * @throws SQLException
     */
    List<Student> findStusByIdIncludePage(String id, PageInfo pageInfo) throws SQLException;
}
